package com.atguigu.spzx.order.api;

import com.atguigu.spyx.model.common.Result;
import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.order.OrderInfo;
import com.atguigu.spzx.order.fallback.OrderClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LT
 * @create 2023-11-23-9:34
 */
@FeignClient(value = "service-order",fallback = OrderClientFallback.class)
public interface OrderClient {

    @GetMapping("/api/order/orderInfo/findOrder/{orderNo}")
    public Result<OrderInfo> findOrderByOrderNo(@PathVariable("orderNo")Long orderNo);


    @GetMapping("/api/order/orderInfo/updatePayStatus/{orderNo}/{payType}/{payStatus}")
    public Result updatePayStatus(@PathVariable("orderNo")Long orderNo,
                                  @PathVariable("payType")Long payType,
                                  @PathVariable("payStatus")Long payStatus);

}
